<?php
namespace Home\Model;
use Think\Model\RelationModel;
class CommentModel extends RelationModel{
	protected $_link = array(
		'Comment_good' => array(
			'mapping_type'  => self::HAS_MANY,
			'class_name'    => 'Comment_good',
			'foreign_key'   => 'comment_id',
		    'mapping_name'  => 'comment_goods'
	    ),
	);
}

